<?php echo $this->renderElement('admin/menu'); ?>
<br />
<?php echo $html->link("Add project", '/projects/add')."<br /><br />"; ?>
<h2><?php echo "Liste des Projets" ?></h2>
<div class="largebloc1">
<table width="100%">
<th>#id</th><th><?php echo "Nom"; ?></th><th><?php echo "Description"; ?></th><th><?php echo __('company'); ?></th><th>Status</th><th>Actions</th>

<?php
	foreach($projects as $project):
		echo "<tr>";
		echo "<td>".$html->link("#".$project['Project']['id'], '/projects/view/'.$project['Project']['id'])."</td>";
		echo "<td>".$html->link($project['Project']['name'], '/projects/view/'.$project['Project']['id'])."</td>";
		echo "<td>".$project['Project']['description']."</td>";
		echo "<td>".$project['Company']['name']."</td>";
		echo "<td>".$project['Project']['status']."</td>";
		echo "<td>".$html->link(__('view', true), '/projects/view/'.$project['Project']['id'])." | ".$html->link(__('edit', true), '/projects/edit/'.$project['Project']['id'])." | ".$html->link(__('delete', true), '/projects/del/'.$project['Project']['id'])."</td>";				
		echo "</tr>";
	endforeach;
?>

</table>
</div>
